
*******CREATING BONUS INCIDENCE FIGURE C.1***********

set more off
clear
clear matrix
capture log close

adopath + "$main/DoFiles"																		


//--> BONUS INCIDENCE DATA 
	*********************************************************************************************************************************************************

		use "$data/bonus_FAmth_level_vars.dta", clear
		
		//--> IDENTIFY TREATMENT STATUS
				
				sort fw_code
				merge fw_code using "$data/FWHR.dta", nok
				drop _m
	
		//--> DROP CONTROL FAS
		
				keep if treat==1
				
				
				
			
		//--> CALCULATE MONTHLY BONUS INCIDENCE
		
			collapse (mean) thres_AB bonus_amount, by (month treat_sm)
			

			graph twoway (connected thres_AB month if treat_sm ==1)  (connected thres_AB month if treat_sm ==0), xlabel(11 "Apr05" 12 "May05" 13 "Jun05" 14 "Jul05" 15 "Aug05" 16 "Sep05" 17 "Oct05" 18 "Nov05" 19 "Dec05" 20 "Jan06" 21 "Feb06" 22 "Mar06" 23 "Apr06" 24 "May06" 25 "Jun06") ysc(r(0 1))
			graph save  Graph "$output/graphC1A.gph", replace
		
			graph twoway (connected bonus_amount month if treat_sm ==1)  (connected bonus_amount month if treat_sm ==0), xlabel(11 "Apr05" 12 "May05" 13 "Jun05" 14 "Jul05" 15 "Aug05" 16 "Sep05" 17 "Oct05" 18 "Nov05" 19 "Dec05" 20 "Jan06" 21 "Feb06" 22 "Mar06" 23 "Apr06" 24 "May06" 25 "Jun06") ysc(r(0 600)) 
			graph save Graph "$output/graphC1B.gph", replace
			
			
			
